package com.example.service.user.impl;

import com.example.mapper.UserMapper;
import com.example.pojo.User;
import com.example.service.user.UserQueryService;
import org.springframework.stereotype.Service;

/**
 *
 * @author Lexin Huang
 */
@Service
public class UserQueryServiceImpl implements UserQueryService {

    private final UserMapper userMapper;

    public UserQueryServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User getByUsername(String name) {
        return userMapper.getByUsername(name);
    }

}
